package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class ServiceName extends AbstractMethod {
    private static final String name = "serviceName";
    /**
    Only sends events where the state changed. Each different alert level OK, INFO, WARNING, and CRITICAL are considered different states.
    **/
    /**
    仅发送状态更改的事件。每个不同的警报级别OK，INFO，WARNING和CRITICAL被认为是不同的状态。
    **/
    public ServiceName(String value) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new SingleQuotesArg(value));

    }
}
